package org.example.myleet.p994;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(4 == solution.orangesRotting(Parser.parse("[[2,1,1],[1,1,0],[0,1,1]]")));
        Assert.isTrue(-1 == solution.orangesRotting(Parser.parse("[[2,1,1],[0,1,1],[1,0,1]]")));
        Assert.isTrue(0 == solution.orangesRotting(Parser.parse("[[0,2]]")));
        Assert.isTrue(-1 == solution.orangesRotting(Parser.parse("[[1]]")));
        Assert.isTrue(2 == solution.orangesRotting(Parser.parse("[[2,1,1],[1,1,1],[0,1,2]]")));
        Assert.isTrue(1 == solution.orangesRotting(Parser.parse("[[2,2],[1,1],[0,0],[2,0]]")));
    }
}
